package com.dayi.redis.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体类
 * 
 * @author YuKaiFan<yukf @ pvc123.com>
 * @date 2020/7/23 10:16
 */
public class User implements Serializable {

    private static final long serialVersionUID = -3420963146048301662L;

    /** id */
    private Long id;
    /** 名称 */
    private String name;
    /** 加密后的密码 */
    private String password;
    /** 加密盐 */
    private String salt;
    /** 邮箱 */
    private String email;
    /** 手机 */
    private String phoneNumber;
    /** 状态 -1：删除 0：禁用 1：启用 */
    private Integer status;
    /** 创建时间 */
    private Date createTime;
    /** 上次登录时间 */
    private Date lastLoginTime;
    /** 上次更新时间 */
    private Date lastUpdateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public String toString() {
        return "User{" + "id=" + id + ", name='" + name + '\'' + ", password='" + password + '\'' + ", salt='" + salt
            + '\'' + ", email='" + email + '\'' + ", phoneNumber='" + phoneNumber + '\'' + ", status=" + status
            + ", createTime=" + createTime + ", lastLoginTime=" + lastLoginTime + ", lastUpdateTime=" + lastUpdateTime
            + '}';
    }
}
